package com.dao;

public class Page {
public static int computer(int totalRows,int rowsPerPage){
		
		int totalPages = 0;
		if(totalRows%rowsPerPage==0)
		{
			totalPages = totalRows / rowsPerPage;
		}else{
			totalPages = totalRows / rowsPerPage + 1;
		}
		return totalPages;
	}
}
